<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>PNG image drag and drop: 'return false' should not cancel event</title>
<style type="text/css">
div
	{height:100px;
	width:100px;
	padding:20px;
	background-color:silver;}
</style>
<script type="application/ecmascript">
function addImage(event)
	{var c = document.createElement('img');
	c.setAttribute('src',event.dataTransfer.getData('text/uri-list').replace(/\r\n$/,''));
	document.querySelector('div').appendChild(c);}
</script>
</head>
<body onload="document.querySelector('img').addEventListener('drag',function (){return false},false)">
<p><img ondragstart="event.dataTransfer.effectAllowed = 'copy'" src="" alt="PNG circle"/></p>
<p>Drag green circle to the silver box below and drop it. It should be copied to the box once you drop it there.</p>
<div ondragenter="event.preventDefault()" ondragover="return false" ondrop="addImage(event)"/>
</body>
</html>